﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ParamSetCollection.Modules.CurveCtrl
{
    public class ChannLogDataUnit
    {
        public string TimeLabel = "00:00";
        public List<string> DataList = new List<string>();

        public ChannLogDataUnit()
        {

        }

        public ChannLogDataUnit(int hour,int min)
        {
            TimeLabel = string.Format("{0:00}:{1:00}",hour,min);

            string str = string.Concat(Enumerable.Repeat("0;", 60));
            DataList= str.Split(';').ToList();

        }

        public void InitValue(string str)
        {
            string[] ss = str.Split(',');
            for (int i = 0; i < ss.Length; i++)
            {
                DataList[i] = ss[i];
            }
        }

    }
}
